How to remove public keyword in code generation???

When my code has a method which does not exist, IDEA shows a lightbulb which can help me to create this method. But if this method will be created in another class, IDEA always uses "public" as method's access modifier although these classes are in the same package.

I want to remove "public" keyword when generate method. How can I do that?

Thanks a lot!

Please sign in to leave a comment.