I want to disable automatic skipping of methods in Android Studio

Error message

The following code is written

button.setOnClickListener (new View.OnClickListener () {
    public void onClick (View v) {
        // processing

Often abbreviated as follows

button.setOnClickListener ((v) → {
        // processing

If there is a way to disable this automatic omission, please let me know.

  • Answer # 1

    Settings → Editor → General → Code Folding,
    "Closures"(anonymous classes implementing one method, before java 8)
    I think it can be disabled by clearing the check box.