Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9241827
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T08:26:55+00:00 2026-06-18T08:26:55+00:00

I need to do important refactoring in a framework. I have a method called

  • 0

I need to do important refactoring in a framework. I have a method called about 300 times from various locations in the code (i.e. Find Usages give me about 300 results).

I would like to filter those results so that it only return usages that are not in the body of a constructor.

I tried to use “view call hierarchy”, it gives more readable results (i.e. it’s more easy to identify call from outside constructor). But I was wondering if there is a way to exclude automatically calls that are done from within a constructor body?

I’m not used to work with the “structural search”, but it’s maybe something that can help ?

I’m using IDEA EAP 12

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T08:26:56+00:00Added an answer on June 18, 2026 at 8:26 am

    (Answering my own question)

    I tried to explore features of SSR and finally found an helpful pattern.

    What I want : find all calls to method myMethod that are done, but excluding those that are done inside constructor body (i.e. only those that are done in a regular instance method).

    The search pattern:

    class $Class$ { 
        $ReturnType$ $MethodName$($ParameterType$ $Parameter$) {$MethodCode$;}
    }
    

    This pattern will match all non empty methods. So I still have to restrict $MethodCode$ with a regexp:

    .*\.myMethod\(.*
    

    I think it should be possible to improve $MethodCode$ regexp, but I didn’t get any false match… so I’m happy with that.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have various important variables that I need transfering from PHP to JS on
We have a large project, >1M lines of code in about 300 DLLs. So
Need some regular expressions help. So far I have my code working to allow
I have several files (they are XML but that's not important) that need to
I have a large unsorted list of items. Some items are important and need
Is there something important I need in RoomItem to ensure that this method isn't
I need to cleanup a some legacy code. Removing unused code is an important
I have one byte in with I need to replace last (least important) bits.
I have filenames in following format: [ignore-prefix]-[important-middle]-[ignore-suffix]-[name-with-digits] I need to sort according to following
I have inherited some code that is in need of a bit of a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.