Is there functionality in IntelliJ that let us find the most referred functions or methods? - intellij-idea

I'm trying to find a way in IntelliJ IDEA to find all the usages of method calls in a particular project, sorted descendingly from the most used methods to the least. Is that possible?
The background for finding such function is to be able to write tests for the most critical methods and functions in the project.

Just right-mouse-button and click on find-usage

Related

How to find production methods only used by tests in Intellij

Does anyone know if it's possible to identify production methods that are only referenced by unit test class methods?
I can see if a method has production or test uses by using the Find Usages option but I want to scan my whole codebase.
Thanks.
Unfortunately this feature is not yet implemented, but there is an issue for it, please follow:
https://youtrack.jetbrains.com/issue/IDEA-212420

Hide overloads of a method in Intellij

The opposite of this question. I come from a C# / VisualStudio background, so IntelliJ code completion just seems cluttered with all the overloads. Is there a way to get rid of them?
It's not possible at the moment, you can vote for the related feature request:
IDEA-230901 Combine autocomplete suggestions for overloaded methods

IntelliJ Plugin Development - Parameter / Method Hints

I am looking into writing plugin for the IntelliJ IDE for testing. I would like methods and classes to have something to indicate the number of tests and coverage they have. i.e. I have a method in my class and I can see that it has 3 tests written for it and 50% coverage.
I want this to be done without editing the code at all, almost exactly like how parameter hints work.
My problem is that I am fairly new to this and after reading the documentation I am struggling to see if an interface like this is even possible? Is there a way of doing this? Is there a better way of doing this?
Many Thanks,
James
I'd use codeInsight.lineMarkerProvider extension for this.
Implementing LineMarkerProvider interface allows to show an interactive icon on left gutter. It's the extension used to "Has implementations" icon etc.

Get call hierarchy with own eclipse plugin

I am currently developping an eclipse plugin, which shall be capable to analyze code in a special way.
Right now, i would need a possibility to return the call hierarchy of a function for further procession. I know, there already is a way to view the call hierarchy in eclipse, but i want to have the raw data (like using an interface to retrieve this call hierarchy and further refine it my own way).
Is there any interface or api for that?

How do I access/read the Phonegap API?

I know there is this: http://docs.phonegap.com/en/2.1.0/index.html but it doesn't really help.
I am trying to learn about the appView variable (I think it's a variable). I would've said it was a class but it starts with a lower case letter :/
The reason I am trying to learn that is because I am trying to understand the appView.addJavascriptInterface(Object, String) method.
My main goal is to send a variable from a java file to a javascript file. Tutorials online seem to be using the method stated above. Because the method takes in an object, the tutorials seem to be creating another class. I want to simplify my code as much as possible so I was seeing if there are any other options.
You will want to write a Plugin. We've already gone through the pain of the JS to Java and back to JS communication. If you purely use addJavaScriptInterface you will run into some edge cases where it doesn't work and we already guard against.
In appView.addJavascriptInterface(Object, String) method Object refers to Java object from which you want to transfer data from Java to java script.
You can't achieve functionality without creating new class.
Apart from Plugin usage above mentioned way only we can achieve communication between java and javascript in phonegap apps.