IntelliJ - Switch between Lombok generated code and Lombok annotated code - intellij-idea

I want to view the Lombok-generated code on IntelliJ.
I can see the Lombok/Delombok options. But after refactoring my code, the Lombok options go missing. How can I switch between Lombok generated code and Lombok annotated code multiple times on IntelliJ?
As shown here, after selecting Refactor -> Lombok options, on those classes, I am unable to see the Lombok option again.

It will show up if you put the cursor inside the class and right-click.

Related

IntelliJ call hierarchy with dependencies

In IntelliJ, it is possible to decompile single class from a dependency jar and see that there is a function call to our prod class. But this is not useful for finding all calls to the method.
There is an option to include dependencies in call hierarchy feature (Ctrl+Alt+H), but seems like it doesn't work for a specific case.
To use this functionality of searching dependencies, should source code of dependency be available?
Does this mean that IntelliJ can index only dependencies with source code?
Thanks
Seems that I met the same puzzle like you did, I click the notice upper under the tag "download the source" and it makes!
I can use "open call hierarchy" function to see the function hierarchy in source code.

disable #Nonnull annotation on "implement methods"

IntelliJ is adding #Nonnull annotations on code generated via the implement methods feature. How to prevent IntelliJ from annotating signatures with that annotation?
IntelliJ 2019.1
Thanks
IntelliJ IDEA copies the annotations from the interface declaration, there is no way to disable this behavior.

Intelllij IDEA Ultimate 2018.1 groovy code completion does not work

I can create a Groovy project and even run it. But when I type main or print there are no auto-complete / code completion suggestions at all. I have groovy-2.4.1 in the external library folder along with Java 1.8. I find Intellij frustrating and non-intuitive to use.
In a groovy script main does show correct code completion but when I click enter it puts "main()" without the String[] args that I can see in the suggestion.
You have created a Groovy class where code has to be embedded into a class to be executable and where only class member declarations are expected (e.g. functions, fields). Select to create a Groovy script (or just delete class declaration) to be able to write executable code in top level file. See also Scripts versus classes.
I was having the same problem when I was in a rush and forgot to add a method in which to write the code. Just type 'psvm + Enter' inside the class. This will create a main method in which code completion will work. Also, you can remove the public keyword as classes and methods in Groovy are by default public.

Intellij idea: how to extend the Java editor

I have managed to develop and run an intellij plugin. Would it be possible to create a plugin extending the java editor for instance by providing a custom code completion feature ?
Yes, this is possible. Please refer to the JavaDoc of the CompletionContributor class for details of implementing custom code completion.

Find methods without JavaDoc in IntelliJ?

In IntelliJ, is there a way to get a list of all methods without JavaDoc for a certain class?
A package?
A module?
A project?
Go to Settings > Editor > Inspections > Javadoc issues > Declaration has Javadoc problems.
On the right side you can configure the scope (package, class, method, ...) and the visibility (public, private, ...) to show warnings for missing JavaDocs.
Finally run Analyze > Run inspection by name > Declaration has Javadoc problems to search for all specified missing JavaDocs.